package com.qms.repast.ui.adapter;

import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseViewHolder;
import com.qms.repast.entity.resbean.DiscountBean;
import com.qms.repast.ui.base.BaseCompatAdapter;

import java.util.List;

/**
 * @author 泅渡者
 * @date 2018/10/23 0023
 * @describe: 折扣券列表适配器
 */
public class DiscountAdapter extends BaseCompatAdapter<DiscountBean, BaseViewHolder> {
	private OnItemClickListener mItemClickListener;

	public DiscountAdapter (int layoutResId, @Nullable List<DiscountBean> data) {
		super(layoutResId, data);
	}

	public DiscountAdapter (@Nullable List<DiscountBean> data) {
		super(data);
	}

	public DiscountAdapter (int layoutResId) {
		super(layoutResId);
	}

	@Override
	protected void convert (BaseViewHolder helper, DiscountBean item) {


	}

	/**
	 * 点击事件
	 */
	public interface OnItemClickListener {
		/**
		 * 点击
		 *
		 * @param view
		 */
		void onItemClick (View view);
	}

	public void setmItemClickListener (OnItemClickListener mItemClickListener) {
		this.mItemClickListener = mItemClickListener;
	}
}